package com.ec.system.modules.sys.dto;

import com.ec.core.mybatis.groups.AddGroup;
import com.ec.core.mybatis.groups.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description:
 * @author: Eric Lee
 * @time: 2021/9/15 14:21
 */
@Data
public class ResetPasswordDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long userId;

    @NotBlank(message="oldPassword不能为空",groups = {UpdateGroup.class})
    @NotNull(message="oldPassword不能为空",groups = {UpdateGroup.class})
    private String oldPassword;

    @NotBlank(message="newPassword不能为空",groups = {UpdateGroup.class})
    @NotNull(message="newPassword不能为空",groups = {UpdateGroup.class})
    private String newPassword;
}
